package com.tianxiabuyi.model.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * PUSH消息类
 * 
 * @author yanghx
 * 
 */
@Entity
@Table(name = "notification")
public class Notification extends TXBYObject {
	private String sender;				// 发送人
	private String receiver;			// 接收人
	private String content;				// 发送内容
	private String title;              
	private String imgs;
	private String voices;
	private Integer feedback;            // 是否需要确认，0不需要，1需要
	@Column(name = "confirm_time") @JSONField(name = "confirm_time")
	private Long confirmTime;			// 确认时间
	@Column(name = "confirm_uid") @JSONField(name = "confirm_uid")
	private Integer confirmUid;			// 确认人的uid
	private Integer type;				// 消息类型 （0为危急值, 1为事务提醒）
	@Column(name = "expire_in") @JSONField(name = "expire_in")
	private Long expireIn;				// 确认有效期
	@Column(name = "dept_id") @JSONField(name = "dept_id")
	private String deptId;				// 接收部门编号
	@Column(name = "dept_name") @JSONField(name = "dept_name")
	private String deptName;			// 接收部门名称

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getReceiver() {
		return receiver;
	}

	public void setReceiver(String receiver) {
		this.receiver = receiver;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getConfirmTime() {
		return confirmTime;
	}

	public void setConfirmTime(Long confirmTime) {
		this.confirmTime = confirmTime;
	}

	public Integer getConfirmUid() {
		return confirmUid;
	}

	public void setConfirmUid(Integer confirmUid) {
		this.confirmUid = confirmUid;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Long getExpireIn() {
		return expireIn;
	}

	public void setExpireIn(Long expireIn) {
		this.expireIn = expireIn;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getImgs() {
		return imgs;
	}

	public void setImgs(String imgs) {
		this.imgs = imgs;
	}

	public String getVoices() {
		return voices;
	}

	public void setVoices(String voices) {
		this.voices = voices;
	}

	public Integer getFeedback() {
		return feedback;
	}

	public void setFeedback(Integer feedback) {
		this.feedback = feedback;
	}
}
